package com.heima.wemedia.mapper;

import com.heima.model.wemedia.pojos.WmNewsMaterial;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 石头
 * @description 针对表【wm_news_material(自媒体图文引用素材信息表)】的数据库操作Mapper
 * @createDate 2022-06-14 16:20:06
 * @Entity com.heima.model.wemedia.pojos.WmNewsMaterial
 */
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {


    /**
     * 保存素材和文章关系的管理关系批量保存
     *
     * @param newId
     * @param ids
     * @param type
     */
    void saveNewsRelation(@Param("newId") Integer newId, @Param("ids") List<Integer> ids, @Param("type") Integer type);
}




